package util;

import javax.swing.*;
import java.awt.*;

public class ComponentUtil {

    public static Dimension getCommonTextDimension(){
        return new Dimension(100, 24);
    }

    public static Font getCommonTextFont(){
        return new Font(null, 0, 15);
    }

    public static Font getTitleTextFont(){
        return new Font(null, Font.BOLD, 20);
    }

    public static JSpinner getCommonJSpinner(){
        JSpinner jSpinner = new JSpinner();
        jSpinner.setPreferredSize(getCommonTextDimension());
        jSpinner.setFont(getCommonTextFont());
        return jSpinner;
    }
}
